package com.dpl.yyrj.ui.data;


import android.view.View;

import androidx.appcompat.widget.AppCompatEditText;
import androidx.appcompat.widget.AppCompatTextView;

import com.dpl.yyrj.R;
import com.dpl.yyrj.aop.Log;
import com.dpl.yyrj.utils.LogUtil;

import java.util.List;

/**
 * @author dpl
 * @date: 2025/8/2 星期六 15:53
 * @description
 **/
public class DataOfViews {

    private final String TAG = "DataOfViews";
    private List<ViewAndTag> views;



    public DataOfViews(List<ViewAndTag> views) {
        this.views = views;
    }

    public void addView(ViewAndTag view) {
        if (views == null) {
            LogUtil.w(TAG, "views is null");
            return;
        }
        views.add(view);
    }

    public ViewAndTag getView(int i) {
        if (views == null || views.size() <= i) {
            LogUtil.w(TAG, "getView views is null or views.size() <= i");
            return null;
        }
        return views.get(i);
    }




}
